package org.test.jf.util;

import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.io.SAXReader;

public class XMLUtil {

	public static Document getXMLInfo(String docName) {
		Document document = null;
		try {
			document = new SAXReader().read(Thread.currentThread().getContextClassLoader().getResourceAsStream(docName));
		} catch (DocumentException e) {
			e.printStackTrace();
		}
		return document;
	}
}
